﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BLL.Entities.Company;

namespace HTAProDataImporterTest
{
    [TestClass]
    public class TestPoliceOfficers : BaseImporterTest
    {
        [TestMethod]
        public void CheckAgentFields()
        {

            PoliceOfficer o = data_importer.store.PoliceOfficers["1878279828"] as PoliceOfficer;

            Assert.IsNotNull(o, "PoliceOfficer is null");
            Assert.AreEqual(o.Person.LastName, "P. Boncards");
            Assert.AreEqual(o.Badge, "8866");
            Assert.AreEqual(o.ICON, 4863);
            Assert.AreEqual(o.Notes, "New Officer");
            Assert.AreEqual(o.Division, "43 B");
            Assert.IsFalse(o.IsRetired);
            
        }
    }
}
